
export default {
  name: "图片",
  component: "DImage",
  icon: "cmp-input",
  cmpType: "component",
  attrs: {
    value: "text",
  },
  attrWidgets: [
    {
      name: "图片源地址",
      key: "src",
      component: "AInput",
      pos: "base",
      labelWidthAuto: false,
      visible: true,
      hidden: false,
      attrs: {
        placeholder: "请输入文字",
      },
    },
    {
      name: "填充方式",
      key: "fit",
      component: "ASelect",
      pos: "base",
      labelWidthAuto: false,
      visible: true,
      hidden: false,
      attrs: {
        selectAttrs: {},
        optionAttrs: {
          label: "label",
          value: "value",
        },
        options: [
          { label: "拉伸填充", value: "fill" },
          { label: "按比例填充", value: "contain" },
          { label: "剪裁不拉伸", value: "cover" },
          { label: "无", value: "none" },
        ],
      },
    },
    {
      name: "是否点击预览",
      key: "isPriview",
      component: "ASwitch",
      pos: "base",
      labelWidthAuto: false,
      visible: true,
      hidden: false,
      attrs: {
        placeholder: "请输入文字",
      },
    },
  ],
  events: [],
  style: {
    width: 120,
    height: 120,
    left: 0,
    top: 0,
    borderRadius: 0,
    borderRadiusPos: [0, 0, 0, 0],
  },
  class: [],
};
